package com.lxs.mall.service;

/**
 * @author 小松
 */
public interface EmailService {

    /**
     * @param to
     * @param subject
     * @param text
     */
    void sendSimpleMessage(String to, String subject, String text);

    /**
     * @param emailAddress
     * @param verificationCode
     * @return
     */
    Boolean saveEmailToRedis(String emailAddress, String verificationCode);

    /**
     * @param emailAddress
     * @param verificationCode
     * @return
     */
    Boolean checkEmailCode(String emailAddress, String verificationCode);
}
